package no8;

public class Test {
	public static void main(String[] args) {
		A a = new B();
		a.print();
	}
	
	static class A {
		void print(){
			System.out.println("this is A");
		}
	}
	
	static class B extends A{
		void print(){
			System.out.println("this is B");
		}
	}
	
}
